package com.csu.backmanagesys.Service.impl;

import com.csu.backmanagesys.Domain.Admin;
import com.csu.backmanagesys.Mapper.AdminMapper;
import com.csu.backmanagesys.Service.AdminService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminMapper adminMapper;

    @Override
    public Admin getAdminById(String id) {
        return adminMapper.getAdminById(id);
    }

    @Override
    public Admin selectAdminByPhone(String phone) {
        return adminMapper.selectAdminByPhone(phone);
    }

//    @Override
//    public Admin selectIdAndPasswordById(String id) {
//        return adminMapper.selectIdAndPasswordById(id);
//    }
}
